package com.leaf.lowcode.utils.jsontobean;

import java.lang.reflect.Field;

public class StringToTransfer<T> implements ToTranfer<T> {
    @Override
    public Object laod(Field field, Object o, T obj) {
        String o1 = o.toString();
      //  System.out.println("o1" + o);
        try {
            field.setAccessible(true);
            field.set(obj, o1);
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        return obj;
    }
}
